#ifndef ONLINESORTIMENT_H
#define ONLINESORTIMENT_H

#include <QtGui>
#include <QtSql>
#include <QtWebKit>
#include "rt.h"

namespace Ui {
class OnlineSortiment;
}

class OnlineSortiment : public QWidget
{
    Q_OBJECT
    
public:
    explicit OnlineSortiment(QWidget *parent = 0);
    ~OnlineSortiment();

private Q_SLOTS:
    void isLogedIn();
    void on_refresh_pushButton_clicked();
    void refreshReplyFinished();

private:
    Ui::OnlineSortiment *ui;
    QSqlDatabase db;
    OnlineConnector *oc;
    QLabel *refresh_progress_label;
    QProgressBar *refresh_progress_bar;
    QNetworkReply *refreshReply;

    void loadSortiment();
};

#endif // ONLINESORTIMENT_H
